<!DOCTYPE html>
<html>
<head>
<?php if ($zbp->Config('baobk')->seo=='1') { ?>
<?php if ($type=='article') { ?>
  <title><?php  echo $title;  ?>-<?php  echo $name;  ?></title>
  <?php 
    $aryTags = array();
    foreach($article->Tags as $key){
      $aryTags[] = $key->Name;
    }
    if(count($aryTags)>0){
        $keywords = implode(',',$aryTags);
    } else {
        $keywords = $zbp->name;
    }
    $description = preg_replace('/[\r\n\s]+/', ' ', trim(SubStrUTF8(TransferHTML($article->Content,'[nohtml]'),135)).'...');
   ?>
  <meta name="keywords" content="<?php  echo $keywords;  ?>"/>
  <meta name="description" content="<?php  echo $description;  ?>"/>
<?php }elseif($type=='page') {  ?>
  <title><?php  echo $title;  ?>-<?php  echo $name;  ?></title>
  <meta name="keywords" content="<?php  echo $title;  ?>,<?php  echo $name;  ?>"/>
  <?php 
    $description = preg_replace('/[\r\n\s]+/', ' ', trim(SubStrUTF8(TransferHTML($article->Content,'[nohtml]'),135)).'...');
   ?>
  <meta name="description" content="<?php  echo $description;  ?>"/>
  <meta name="author" content="<?php  echo $article->Author->StaticName;  ?>">
<?php }elseif($type=='index') {  ?>
  <title><?php  echo $name;  ?><?php if ($page>'1') { ?>-第<?php  echo $pagebar->PageNow;  ?>页<?php } ?>-<?php  echo $subname;  ?></title>
  <meta name="Keywords" content="<?php  echo $zbp->Config('baobk')->keyword;  ?>">
  <meta name="description" content="<?php  echo $zbp->Config('baobk')->description;  ?>">
  <meta name="author" content="<?php  echo $zbp->members[1]->StaticName;  ?>">
<?php }else{  ?>
  <title><?php  echo $title;  ?>-<?php  echo $name;  ?>-第<?php  echo $pagebar->PageNow;  ?>页</title>
  <meta name="Keywords" content="<?php  echo $title;  ?>,<?php  echo $name;  ?>">
  <meta name="description" content="<?php  echo $title;  ?>_<?php  echo $name;  ?>_当前是第<?php  echo $pagebar->PageNow;  ?>页">
  <meta name="author" content="<?php  echo $zbp->members[1]->StaticName;  ?>">
<?php } ?>
<?php }else{  ?>
 <title><?php  echo $name;  ?>-<?php  echo $title;  ?></title>
<?php } ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<link rel='stylesheet' id='bootstrap-css'  href='<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/a/bootstrap.min.css' type='text/css' media='all' />
<link rel='stylesheet' id='fontawesome-css'  href='<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/a/font-awesome.min.css' type='text/css' media='all' />
<link rel='stylesheet' id='flexslider-css'  href='<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/a/flexslider.css' type='text/css' media='all' />
<link rel='stylesheet' id='zan-css'  href='<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/a/zan.css' type='text/css' media='all' />
<script src="<?php  echo $host;  ?>zb_system/script/common.js" type="text/javascript"></script>
<script src="<?php  echo $host;  ?>zb_system/script/c_html_js_add.php" type="text/javascript"></script>
<?php  echo $header;  ?>
<!--[if lt IE 9]>
  <script src="<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/a/modernizr.js"></script>
  <script src="<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/a/respond.min.js"></script>
  <script src="<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/a/html5shiv.js"></script>
<![endif]-->
</head>
<body class="archive tag tag-34 tag-34">
  <header id="zan-header">
    <!-- logo -->
    <div class="header">
      <a href="<?php  echo $host;  ?>" class="logo" data-toggle="animation"></a>
    </div>
    <!-- logo结束 -->
    <!-- 导航 -->
    <div class="navbar navbar-inverse" >
      <div class="container clearfix">
        <div class="navbar-header">
          <button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">下拉框</span>
            <span class="fa fa-reorder fa-lg"></span>
          </button>
        </div>
        <nav class="navbar-collapse collapse">
          <ul id="menu-navbar" class="nav navbar-nav">
          <?php  if(isset($modules['navbar'])){echo $modules['navbar']->Content;}  ?></ul>        </nav>
      </div>
    </div>
    <!-- 导航结束 -->

  </header>